package com.zhiyou.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou.mapper.SpeakerMapper;
import com.zhiyou.pojo.Speaker;
import com.zhiyou.pojo.SpeakerExample;

@Service
public class SpeakerService {

	
	@Autowired
	private SpeakerMapper speakerMapper;
	
	public List<Speaker> selectAll(){
		
		return speakerMapper.selectByExample(new SpeakerExample());
	}

	public Speaker selsctById(int id) {

		return speakerMapper.selectByPrimaryKey(id);
	}
}
